<!-- Breadcrumbs-->
<ol class="breadcrumb">
    <li class="breadcrumb-item">
        <a href="#">博客</a>
    </li>
    <li class="breadcrumb-item active">标签</li>
</ol>

<div class="container-fluid">
    <a href="{:url('backend/tag/create')}" class="btn btn-primary">添加标签</a>
</div>

<div class="card-body">
    <div class="table-responsive">
        <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
            <thead>
            <tr>
                <th>ID</th>
                <th>标签名</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            {volist name ="tags" id="tag"}
            <tr>
                <td>{$tag->id}</td>
                <td>{$tag->name}</td>
                <td>
                    <div class="btn-group">
                        <a href="{:url('backend/tag/edit', ['id'=> $tag->id])}" class="btn btn-warning">编辑</a>
                        <a href="javascript:void(0)" onclick="if (confirm('确定删除?')) { location.href = '{:url(\'backend/tag/delete\', [\'id\' => $tag->id])}'}" class="btn btn-warning">删除</a>
                    </div>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
        <div class="col-sm-12">
            {$tags|raw}
        </div>

    </div>
</div>